{extend name="common:frm_base" /}
{block name="content"}
<style>
    .layui-form-label{width:120px;}
    .layui-input-inline{width:300px!important;}
</style>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header">志愿者管理</div>
        <div class="layui-card-body" style="padding: 15px;">
            <form class="layui-form" action="{:url('Volunteer/handle')}" lay-filter="component-form-group">

                <div class="layui-form-item">
                    <label class="layui-form-label">真实姓名</label>
                    <div class="layui-input-inline">
                        <input type="text" value="{$info['realname']|default=''}" id="realname" name="realname" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">手机号码</label>
                    <div class="layui-input-inline">
                        <input type="text" value="{$info['mobile']|default=''}" id="mobile" name="mobile" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">身份证号</label>
                    <div class="layui-input-inline">
                        <input type="text" value="{$info['id_card']|default=''}" id="id_card" name="id_card" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">服务类型</label>
                    <div class="layui-input-inline">
                        <select name="skill" lay-search="">
                            <option value="">请选择服务类型</option>
                            {volist name="$service" id="val"}
                            <option value="{$val.name}" {if $info['skill']==$val['name']}selected{/if}>{$val.name}</option>
                            {/volist}
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">站点</label>
                    <div class="layui-input-inline">
                        <select name="site_id" lay-search="">
                            <option value="0">请选择站点</option>
                            {volist name="$site" id="val"}
                            <option value="{$val.id}" {if $info['new_site_id']==$val['id'] || $info['site_id']==$val['id']}selected{/if}>{$val.name}</option>
                            {/volist}
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">服务队</label>
                    <div class="layui-input-inline">
                        <select name="oid" lay-search="">
                            <option value="0">请选择服务队</option>
                        {volist name="$organization" id="val"}
                        <option value="{$val.id}" {if $info['new_oid']==$val['id'] || $info['oid']==$val['id']}selected{/if}>{$val.name}</option>
                        {/volist}
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">是否党员</label>
                    <div class="layui-input-inline">
                        <input type="radio" name="is_party" value="0" {if $info['is_party']==0}checked{/if} title="否">
                        <input type="radio" name="is_party" value="1" {if $info['is_party']==1}checked{/if} title="是">
                    </div>
                </div>
                <!--<div class="layui-form-item">-->
                    <!--<label class="layui-form-label">专业照片</label>-->
                    <!--<div class="layui-input-inline">-->
                        <!--<img class="layui-upload-img" id="head_pic" src="{$info->image}" style="max-width: 150px;">-->
                    <!--</div>-->
                <!--</div>-->
                <!--<div class="layui-form-item">-->
                    <!--<label class="layui-form-label">身份证正面</label>-->
                    <!--<div class="layui-input-inline">-->
                        <!--<img class="layui-upload-img" id="card_img" src="{$info->card_img}" style="max-width: 150px;">-->
                    <!--</div>-->
                <!--</div>-->
                <div class="layui-form-item">
                    <label class="layui-form-label">状态</label>
                    <div class="layui-input-block">
                        <input type="radio" name="status" value="0" {if $info['sid']==0}checked{/if} title="审核中">
                        <input type="radio" name="status" value="1" {if $info['sid']==1}checked{/if} title="审核通过">
                        <input type="radio" name="status" value="2" {if $info['sid']==2}checked{/if} title="审核不通过">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">组织审核</label>
                    <div class="layui-input-block">
                        <input type="radio" name="o_status" value="0" {if $info['o_status']==0}checked{/if} title="审核中">
                        <input type="radio" name="o_status" value="1" {if $info['o_status']==1}checked{/if} title="审核通过">
                        <input type="radio" name="o_status" value="2" {if $info['o_status']==2}checked{/if} title="审核不通过">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">是否发布</label>
                    <div class="layui-input-block">
                        <input type="radio" name="is_add" value="0" {if $info['is_add']==0}checked{/if} title="否">
                        <input type="radio" name="is_add" value="1" {if $info['is_add']==1}checked{/if} title="是">
                    </div>
                </div>
                <input type="hidden" value="{$act}" name="act" />
                <input type="hidden" value="{$info['id']|default=''}" name="id" />
                <div class="layui-form-item layui-hide">
                    <input type="button" lay-submit lay-filter="LAY-user-front-submit" id="LAY-user-front-submit" value="确认">
                </div>
                <!--<div class="layui-form-item layui-layout-admin">-->
                <!--<div class="layui-input-block">-->
                <!--<div class="layui-footer" style="left: 0;">-->
                <!--<button class="layui-btn" lay-submit="" lay-filter="component-form-demo1">立即提交</button>-->
                <!--<button type="reset" class="layui-btn layui-btn-primary">重置</button>-->
                <!--</div>-->
                <!--</div>-->
                <!--</div>-->
            </form>
        </div>
    </div>
</div>


<script>
    layui.config({
        base: '__LAYUIADMIN__/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form', 'laydate'], function(){
        var $ = layui.$
            ,admin = layui.admin
            ,element = layui.element
            ,layer = layui.layer
            ,laydate = layui.laydate
            ,form = layui.form;

        form.render(null, 'component-form-group');

        laydate.render({
            elem: '#LAY-component-form-group-date'
        });
    });
</script>
</body>
</html>
{/block}